package Form;

import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;

import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;

public class Waiting extends JDialog {

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		try {
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	/**
	 * Create the dialog.
	 */
	public Waiting(JDialog dialog) {
		 JPanel panel = new JPanel(new GridBagLayout());  
	     panel.add(new JLabel("Please wait..."),new GridBagConstraints());  
	     dialog.getContentPane().add(panel);  
	     dialog.setBounds(500,250,200,100);  
	     dialog.setModal(true);
	     dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
	     dialog.setVisible(true);
	}

}
